import { defineStore } from 'pinia';

/**
 * 组织机构管理
 * @methods setCacheKeepAlive 设置要缓存的路由 names（开启 Tagsview）
 */
export const useOrganization = defineStore('organization', {
  state: (): any => ({
    selectedOrganizationRow: {},
  }),
  actions: {
    async setSelectedOrganizationRow(row: any) {
      this.selectedOrganizationRow = row;
    },
  },
});
